﻿<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#datagrid-log')}">
        <fieldset>
            <legend style="font-weight:normal;">搜索：</legend>
            <div style="margin:0; padding:1px 5px 5px;">
                <span>关键字：</span>
                <input type="text" name="k" class="form-control" size="15"> 

                <div class="btn-group">
                    <button type="submit" class="btn-green" data-icon="search">开始搜索！</button>
                    <button type="reset" class="btn-orange" data-icon="times">重置</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="datagrid-log"> 
    </table>
</div>
<script type="text/javascript">
    $.CurrentNavtab.find('#datagrid-log').datagrid({
        height: '100%',
        tableWidth: '100%',
        gridTitle: '操作日志',
        showToolbar: true,
        showCheckboxcol: true,
        filterThead: false,
        toolbarItem: '@Html.ToolbarItems("Sys.Log.Index")', 
        toolbarCustom: '@Html.ToolbarCustom("Sys.Log.Index")', 
        exportOption: { type: 'file', options: { url: '/Sys/Log/Export' } },
        dataUrl: '/sys/log/indexajax', 
        editUrl: 'ajaxDone1.html',
        delUrl: '/sys/log/Delete',
        delPK: 'id', 
        columns: [
            {
                name: 'id',
                label: 'id',
                align: 'center',
                width: 70
            }, {
                name: 'user_id',
                label: '用户Id',
                align: 'center',
                width: 70
            }, {
                name: 'method',
                label: '请求方法',
                align: 'center',
                width: 70
            }, {
                name: 'operation',
                label: '用户操作',
                align: 'center',
                width: 70
            }, {
                name: 'create_time',
                label: '创建时间',
                align: 'center',
                width: 70
            }, {
                name: 'ip',
                label: 'IP地址',
                align: 'center',
                width: 70
            }, {
                name: 'opt_params',
                label: '请求参数',
                align: 'center' 
            }
        ],
        linenumberAll: true
    })
</script>